package com.heima.user.feign;

import com.heima.common.dto.ResponseResult;
import com.heima.user.dto.ApAuthor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 文章feign对外暴露接口
 *
 * @Name : ArticleFeign
 * @Author : WuQiang
 * @Date : 2022-10-05 17:37
 * @Description : 文章feign对外暴露接口
 */
@FeignClient(value = "leadnews-article")
public interface ArticleFeign {

    /**
     * 保存文章作者
     */
    @PostMapping(value = "/api/v1/author")
    ResponseResult<ApAuthor> saveAuthor(@RequestBody ApAuthor author);
}
